  <div id="page_message" class="page_mess_animate page_mess_error">
    
  </div>
<?php include_partial('global/navbar') ?>
<br/><br/>
<div class="u-info-nav">
    <div class="wrap">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <h3 class="panel-title">个人基础信息(必填项)</h3>
            </div>
            <div class="panel-body">
                <form id="userinfogr" class="form-horizontal" role="form" action="<?php echo url_for('user/saveuserinfo')?>" method="POST">
                    <div class="form-group">
                        <label for="inputEmail3" class="col-xs-2 control-label">用户名: </label>
                        <div class="col-xs-4">
                            <label class="control-label"><?php echo $user_name; ?></label>
                        </div>
                    </div>
                   <?php if($userattrs['name']!="0" && $userattrs['name']!=""): ?>  
                  <div class="form-group">
                        <label for="RealName" class="col-xs-2 control-label">真实姓名:</label>
                            <div class="col-xs-4">
                                <label class="control-label"><?php echo $name; ?></label>
                            </div>
                    </div>
                   <?php endif; ?>
                     <?php if($userattrs['id_card']!="0" && $userattrs['id_card']!=""): ?>
                    <div class="form-group">
                        <label for="IdCard" class="col-xs-2 control-label">身份证号:</label>
                            <div class="col-xs-4">
                               <label class="control-label"><?php echo $id_card; ?></label>
                            </div>
                    </div>
                    <?php endif; ?>
                    <?php if($userattrs['phone']!="0" && $userattrs['phone']!=""): ?>
                    <div class="form-group">
                        <label for="Mobile" class="col-xs-2 control-label">手机号码:</label>
                            <div class="col-xs-4">
                                <label class="control-label"><?php echo $phone; ?></label>
                            </div>
                    </div>
                     <?php endif; ?>
                    <?php if($userattrs['email']!="0" && $userattrs['email']!=""): ?>
                    <div class="form-group">
                        <label for="Email" class="col-xs-2 control-label">邮箱地址:</label>
                            <div class="col-xs-4">
                                <label class="control-label"><?php echo $email; ?></label>
                            </div>

                    </div>
                    <?php endif; ?>
                    <div class="form-group">
                        <label class="col-xs-2 control-label">性别:</label>
                        <div class="col-xs-4">
                            <label class="checkbox-inline">
                                
                                <input id="Gender" name="Gender" type="radio" value="1" <?php if($sex==1): ?>checked="checked" <?php endif;?>/>男
                            </label>
                            <label class="checkbox-inline">
                                
                                <input id="Gender" name="Gender" type="radio" value="0" <?php if($sex=="0"): ?>checked="checked" <?php endif;?>/>女
                            </label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="EducationId" class="col-xs-2 control-label">最高学历:</label>
                        <div class="col-xs-4">
                            <select Class="form-control" id="EducationId" name="edu_status"><option value="">请选择</option>
                                <?php foreach ($edu_status as $edu=>$v): ?>
                                <option value="<?php echo $edu; ?>" <?php if($userattrs['edu_status']==$edu): ?>selected = "selected"  <?php endif;?> ><?php echo $v; ?></option>
                                <?php endforeach; ?>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="MarriageStatusId" class="col-xs-2 control-label">婚姻状况: </label>
                        <div class="col-xs-4">
                            <?php foreach ($marray_status as $marray=>$v): ?>
                                <label class="checkbox-inline">
                                  <input id="MarriageStatusId" name="marray_status" type="radio" value="<?php echo $marray; ?>" <?php if($userattrs['marray_status']==$marray): ?>checked="checked" <?php endif;?> /><?php echo $v; ?>
                                </label>
                            <?php endforeach; ?>
                            
                            
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="ResidenceTypeId" class="col-xs-2 control-label">住房条件: </label>
                        <div class="col-xs-4">
                            <?php foreach ($residence_status as $residence=>$v): ?>
                                <label class="checkbox-inline">
                                  <input id="residence_status" name="residence_status" type="radio" value="<?php echo $residence; ?>" <?php if($userattrs['residence_status']==$residence): ?>checked="checked" <?php endif;?> /><?php echo $v; ?>
                                </label>
                            <?php endforeach; ?>
                           
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="ResidenceAddress" class="col-xs-2 control-label">居住地址:</label>
                        <div class="col-xs-4">
                            <input type="text" class="form-control" id="home_address" name="home_address" value="<?php echo $userattrs['home_address']; ?>">
                            
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="ResidencePhone" class="col-xs-2 control-label">居住电话:</label>
                        <div class="col-xs-4">
                            <input type="tel" class="form-control" id="home_telephone" name="home_telephone" value="<?php echo $userattrs['home_telephone']; ?>">
                        </div>
                        <div class="col-xs-4">
                            <label class="exli control-label">(例：021-11111111)</label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="HasBuyCar" class="col-xs-2 control-label">是否购车:</label>
                        <div class="col-xs-4">
                            <label class="checkbox-inline">
                                
                                <input id="has_cart" name="has_cart" type="radio" value="0" <?php if($userattrs['has_cart']==0): ?>checked="checked" <?php endif;?> />有车
                            </label>
                            <label class="checkbox-inline">
                                
                                <input id="has_cart" name="has_cart" type="radio" value="1" <?php if($userattrs['has_cart']==1): ?>checked="checked" <?php endif;?> />没车
                            </label>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-xs-offset-2 col-xs-4">
                           <input type="submit" class="btn btn-primary" id="CompanyBtn" name="userinfo" value="保  存 " /> 
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <div class="panel panel-primary">
    <div class="panel-heading">
        <h3 class="panel-title">公司信息(必填项)</h3>
    </div>
    <div id="usercompany" class="panel-body">
        <form id="userinfogs" class="form-horizontal" role="form" method="POST" action="<?php echo url_for('user/savecompanyinfo')?>">
            <div class="form-group">
                <label for="CompanyName" class="col-xs-2 control-label">公司名称:</label>
                <div class="col-xs-4">
                    <input type="text" class="form-control" id="CompanyName" name="name" value="<?php echo $company_info->getName(); ?>">
                </div>
            </div>
            <div class="form-group">
                <label for="CompanyTypeId" class="col-xs-2 control-label">公司行业:</label>
                <div class="col-xs-4">
                    <select Class="form-control" id="CompanyTypeId" name="category"><option value="">请选择</option>
                         <?php foreach ($category_status as $status=>$v): ?>
                            <option value="<?php echo $status; ?>" <?php if($company_info->getCategory()==$status): ?>selected = "selected"  <?php endif;?> ><?php echo $v; ?></option>
                         <?php endforeach; ?>

                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="CompanySize" class="col-xs-2 control-label">公司规模:</label>
                <div class="col-xs-4">
                    <select Class="form-control" id="CompanySize" name="scale"><option value="">请选择</option>
                      <?php foreach ($scale_status as $status=>$v): ?>
                          <option value="<?php echo $status; ?>" <?php if($company_info->getScale()==$status): ?>selected = "selected"  <?php endif;?> ><?php echo $v; ?></option>
                      <?php endforeach; ?>
                  </select>
                </div>
            </div>
            <div class="form-group">
                <label for="Position" class="col-xs-2 control-label">职位:</label>
                <div class="col-xs-4">
                    <input type="text" class="form-control" id="Position" name="job"  value="<?php echo $company_info->getJob(); ?>">
                </div>
            </div>
            <div class="form-group">
                <label for="MonthlyIncome" class="col-xs-2 control-label">月收入:</label>
                <div class="col-xs-4">
                    <select Class="form-control" id="MonthlyIncome" name="income"><option value="">请选择</option>
                          <?php foreach ($income_status as $status=>$v): ?>
                          <option value="<?php echo $status; ?>" <?php if($company_info->getIncome()==$status): ?>selected = "selected"  <?php endif;?> ><?php echo $v; ?></option>
                        <?php endforeach; ?>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="CompanyAddress" class="col-xs-2 control-label">公司地址:</label>
                <div class="col-xs-4">
                    
                    <input type="text" class="form-control" id="address" name="address"  value="<?php echo $company_info->getAddress(); ?>">
                </div>
            </div>
            <div class="form-group">
                <label for="CompanyPhone" class="col-xs-2 control-label">公司电话:</label>
                <div class="col-xs-4">
                    <input type="text" class="form-control" id="CompanyPhone" name="office_phone" value="<?php echo $company_info->getOfficePhone(); ?>">
                </div>
                 <div class="col-xs-4">
                            <label class="exli control-label">(例：021-11111111)</label>
                        </div>
            </div>
            <div class="form-group">
                <div class="col-xs-offset-2 col-xs-4">
                    <input type="submit" class="btn btn-primary" id="CompanyBtn" name="companyinfo" value="保  存 " /> 
                </div>
            </div>
        </form>
    </div>
</div>

        <div class="panel panel-primary">
            <div class="panel-heading">
                <h3 class="panel-title">其他联系方式(必填项)</h3>
            </div>
    <div class="panel-body" id="usercontact">
        <form id="userinfolx" class="form-horizontal" role="form" action="<?php echo url_for('user/saveotherinfo')?>" method="POST">
            <div class="form-group">
                <label for="RealName" class="col-xs-2 control-label">第二联系人姓名:</label>
                <div class="col-xs-4">
                    <input type="text" class="form-control" id="SecondRealName" name="second_contact_name" value="<?php echo $userattrs['second_contact_name']; ?>">
                </div>
            </div>
            <div class="form-group">
                <label for="SecondRelationShipId" class="col-xs-2 control-label">第二联系人关系:</label>
                <div class="col-xs-4">
                    <select Class="form-control" id="SecondRelationShipId" name="second_contact_relation"><option value="">请选择</option>
                         <?php foreach ($relations_status as $relations=>$v): ?>
                            <option value="<?php echo $relations; ?>" <?php if($userattrs['second_contact_relation']==$relations): ?>selected = "selected"  <?php endif;?> ><?php echo $v; ?></option>
                        <?php endforeach; ?>

                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="SecondMobile" class="col-xs-2 control-label">第二联系人手机:</label>
                <div class="col-xs-4">
                    <input type="text" class="form-control" id="SecondMobile" name="second_contact_phone" value="<?php echo $userattrs['second_contact_phone']; ?>">
                </div>
            </div>
            <div class="form-group">
                <label for="ThirdRealName" class="col-xs-2 control-label">第三联系人姓名:</label>
                <div class="col-xs-4">
                    <input type="text" class="form-control" id="ThirdRealName" name="three_contact_name" value="<?php echo $userattrs['three_contact_name']; ?>">
                </div>
            </div>

            <div class="form-group">
                <label for="inputPassword3" class="col-xs-2 control-label">第三联系人关系:</label>
                <div class="col-xs-4">
                    <select Class="form-control" id="ThirdRelationShipId" name="three_contact_relation"><option value="">请选择</option>
                        <?php foreach ($relations_status as $relations=>$v): ?>
                            <option value="<?php echo $relations; ?>" <?php if($userattrs['three_contact_relation']==$relations): ?>selected = "selected"  <?php endif;?> ><?php echo $v; ?></option>
                        <?php endforeach; ?>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="ThirdMobile" class="col-xs-2 control-label">第三联系人手机:</label>
                <div class="col-xs-4">
                    <input type="text" class="form-control" id="ThirdMobile" name="three_contact_phone" value="<?php echo $userattrs['three_contact_phone']; ?>">
                </div>
            </div>
            <div class="form-group">
                <div class="col-xs-offset-2 col-xs-4">
                    <input type="submit" id="BtnContacts" class="btn btn-primary" name="userinfolx" value="保 存 "/> 
                </div>
            </div>
        </form>
    </div>
        </div>
    </div>
</div>
<script>
    $("#10003 , #10011").addClass('on');
</script>